package com.itcast.demo_one.kotlin

fun main(args: Array<String>) {
    val man = Person4("张三")
    man.show()
}

// 次构造函数 ( 无主构造函数 )
class Person4{
    var name: String = ""
    var age: Int = 0

    constructor(name: String){
        this.name = name
    }

    fun show(){
        println("name: $name, age: $age")
    }
}